package learn.javaguide;

public class Enum {
    private PizzaStatus status;

    public PizzaStatus getStatus() {
        return status;
    }

    public enum PizzaStatus {
        ORDERED,
        READY,
        DELIVERED;
    }

    public boolean isDeliverable() {
        return getStatus() == PizzaStatus.READY;
    }
    public static void main(String[] args) {

        Enum anEnum = new Enum();
        System.out.println(anEnum.isDeliverable());
    }

}
